<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let [a=1,b=2,c=4]=[10,undefined,34]
        console.log(a)
        console.log(b)//第二个未定义采用默认值
        console.log(c)

        let {x=1,y=3,z=1}={x:10,y:200}
        console.log(x)
        console.log(y)
        console.log(z)

        function move(x=1,y=5){
            return [x,y]

        }
        console.log(move())
    </script>
</body>
</html>